package tpInterface;

import java.util.List;
import object.Product;
import object.ProductDetail;
import object.ReturnBool;

/**
 *
 * @author SonTT
 */
public interface IProduct {

    // Get product details:
    List<ProductDetail> getProducts();
    
    // Get product detail by product id:
    ProductDetail getProductDetailByProductID(String productID);
    
    // Get product details by category id:
    List<ProductDetail> getProductDetailByCategoryID(String categoryID);

    // Add new product:
    ReturnBool addProduct(Product product);

    // Edit product:
    ReturnBool editProduct(Product product);

    // Delete product:
    ReturnBool deleteProduct(String productID);

    // Delete products:
    ReturnBool deleteProducts(String[] productIDs);

    // Search product:
    List<ProductDetail> searchProduct(String keyword);
}
